<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我们的宿舍</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- 自定义CSS -->
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <!-- 头部 -->
    <header class="bg-primary text-white text-center py-3">
        <div class="container">
            <h1 class="display-4">欢迎来到我们的宿舍</h1>
            <nav class="navbar navbar-expand-lg navbar-dark">
                <div class="container-fluid">
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarNav">
                        <ul class="navbar-nav mx-auto">
                            <li class="nav-item"><a class="nav-link active" href="index.html">首页</a></li>
                            <li class="nav-item"><a class="nav-link" href="chengyuan.html">宿舍成员</a></li>
                            <li class="nav-item"><a class="nav-link" href="shenghuo.html">宿舍生活</a></li>
                            <li class="nav-item"><a class="nav-link" href="gushi.html">宿舍故事</a></li>
                            <li class="nav-item"><a class="nav-link" href="guanyv.html">关于我们</a></li>
                        </ul>
                    </div>
                </div>
            </nav>
        </div>
    </header>

    <!-- Banner 轮播图 -->
    <section id="banner" class="carousel slide" data-bs-ride="carousel" data-bs-interval="2000" data-bs-pause="hover">
        <div class="carousel-inner">
            <div class="carousel-item active">
                <img src="img/tp1.jpg" class="d-block w-100" alt="宿舍环境">
            </div>
            <div class="carousel-item">
                <img src="img/tp2.jpg" class="d-block w-100" alt="室友合照">
            </div>
        </div>
        <button class="carousel-control-prev" type="button" data-bs-target="#banner" data-bs-slide="prev">
            <span class="carousel-control-prev-icon"></span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#banner" data-bs-slide="next">
            <span class="carousel-control-next-icon"></span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#banner" data-bs-slide="next">
            <span class="carousel-control-next-icon"></span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#banner" data-bs-slide="next">
            <span class="carousel-control-next-icon"></span>
        </button>
    </section>

    <!-- 主要内容区域 -->
    <main class="container my-5">
        <section id="intro" class="mb-5">
            <h2>宿舍简介</h2>
            <p>我们是来自海南经贸职业技术学院的5524宿舍，这里有温馨、干净、整洁的环境和有趣的室友！</p>
            <p>我们5524一共有5个人，有来自文昌的、江西的、琼中的、琼海的、陵水的。我的室友们都很有趣，
                大家来自不同的地方，平时会一起分享家乡的特产，聊各自的生活习惯。</p>

        </section>

        <section id="news" class="mb-5">
            <h2>最新动态</h2>
            <div class="row">
                <div class="col-md-4">
                    <div class="card">
                        <div class="card-body">
                            <h5 class="card-title">宿舍聚餐</h5>
                            <p class="card-text">上周我们一起去聚餐，太开心了！</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card">
                        <div class="card-body">
                            <h5 class="card-title">学习小组</h5>
                            <p class="card-text">我们成立了一个学习小组，一起完成小组作业！</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <section id="moments" class="mb-5">
            <h2>精彩瞬间</h2>
            <div class="row">
                <div class="col-md-4">
                    <img src="img/tp3.jpg" class="img-fluid" alt="宿舍生活">
                </div>
                <div class="col-md-4">
                    <img src="img/tp2.jpg" class="img-fluid" alt="宿舍活动">
                </div>
            </div>
        </section>
    </main>

    <!-- 底部 -->
    <footer class="bg-dark text-white text-center py-3">
        <p>&copy; 2025 我们的宿舍. 版权所有.</p>
        <p>联系方式: 1928946480@qq.com</p>
    </footer>

    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- 自定义JS -->
    <script src="scripts.js"></script>
</body>
</html>